.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.modal-content {
  background: white;
  padding: 24px;
  border-radius: 8px;
  position: relative;
  z-index: 2002;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  max-width: 80%;
  max-height: 90%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-content .modal-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
}

.modal-content .modal-body {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-content .modal-body .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modal-content .modal-body .modal-close:hover {
  opacity: 0.7;
}

.modal-content .modal-body .modal-close::before,
.modal-content .modal-body .modal-close::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 2px;
  background: #666;
  top: 50%;
  left: 50%;
}

.modal-content .modal-body .modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-content .modal-body .modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-visible {
  opacity: 1;
}

.modal-visible .modal-content {
  transform: scale(1);
}